﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Xml.XmlNode>" %>

<%@ Import Namespace="ShopzillaV1.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%= Model.SelectSingleNode("title").InnerText %></h2>
    <br />
    <div class="rightalignedobject">
        <% if (ViewData[VDConstants.SingleVideoPlayer] != null)
           {
               Html.RenderPartial("YouTubeMovie", ViewData[VDConstants.SingleVideoPlayer]);
           } %>
    </div>
    <div class="leftedimage">
        <img src='<%= Model.SelectNodes("Images/Image")[2].InnerText%>' alt='<%= Model.SelectNodes("title")[0].InnerText%>' />
    </div>
    <br />
    <p>
        <% if (Model.SelectSingleNode("longDescription") != null)
           {
        %>
        <%=Model.SelectSingleNode("longDescription").InnerText %>
        <%
           }
           else if (Model.SelectSingleNode("description")!=null)
           {
        %>
        <%=Model.SelectSingleNode("description").InnerText %>
        <%
           } %>
    </p>
    <p>
        <a href='<%= Model.SelectSingleNode("url").InnerText %>' rel="nofollow">
            <img alt="Go To Store" src="../../Content/images/goToStore.gif" /></a>
    </p>
</asp:Content>
